﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PController : MonoBehaviour {
    BoxCollider2D Col;
    Vector3 Speed;
    float SpeedX=0, SpeedZ=0,SpeedY = 0;
	// Use this for initialization
	void Start () {
        Col = GetComponent<BoxCollider2D>();
    }
	
	// Update is called once per frame
	void Update () {
        Speed = new Vector3(SpeedX, SpeedY, SpeedZ);
        SpeedY -= 0.01f*Time.time;

        transform.position += Speed;
    }
    void OnCollisionEnter2D(Collision2D other)
    {
        if (other.gameObject.CompareTag("Ground"))
        {

        }
    }
}
